class Post < ActiveRecord::Base

  #pagination
  cattr_reader :per_page
  @@per_page = 4

  validates_presence_of :title,:body
  validates_uniqueness_of :title
end

